<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Plot</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">Plot()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>Plot</b></font>(x, y [, Color])  </blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Draw a single pixel at the given location in the current output. 
The current output is set with <a href="startdrawing.html">StartDrawing()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>x, y</i></td>
<td width="90%"> 
The location of the pixel to set. <br><br>出于性能的原因有没有界限检查这些坐标上执行，指定的坐标必须在当前绘图区域内。<a href="outputwidth.html">OutputWidth()</a> and <a href="outputheight.html">OutputHeight()</a> can be used to verify that. This command is also not affected by any clipping imposed by <a href="clipoutput.html">ClipOutput()</a>. 

</td></tr>
<tr><td><i>Color (可选)</i></td>
<td> 
The color to be used for the pixel. 如果未指定此参数，将使用与<a href="frontcolor.html">FrontColor()</a>设置的默认颜色。这种颜色可以使用<a href="rgb.html">RGB</a>或<a href="rgba.html">RGBA</a>格式。 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 0, 0, 200, 200, "2DDrawing Example", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
    <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreateImage</font>(0, 200, 200) <b><font color="#3A3966">And</font></b> <font color="#3A3966">StartDrawing</font>(<font color="#3A3966">ImageOutput</font>(0))
      <b><font color="#3A3966">For</font></b> x = 0 <b><font color="#3A3966">To</font></b> 199
        <b><font color="#3A3966">For</font></b> y = 0 <b><font color="#3A3966">To</font></b> 199
<font color="#3A3966">          Plot</font>(x, y,<font color="#3A3966"> RGB</font>(<font color="#3A3966">Random</font>(255),<font color="#3A3966"> Random</font>(255),<font color="#3A3966"> Random</font>(255)))
        <b><font color="#3A3966">Next</font></b> y
      <b><font color="#3A3966">Next</font></b> x
<font color="#3A3966">      StopDrawing</font>() 
<font color="#3A3966">      ImageGadget</font>(0, 0, 0, 200, 200,<font color="#3A3966"> ImageID</font>(0))
    <b><font color="#3A3966">EndIf</font></b>
    
    <b><font color="#3A3966">Repeat</font></b>
      Event =<font color="#3A3966"> WaitWindowEvent</font>()
    <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="point.html">Point()</a>, <a href="frontcolor.html">FrontColor()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=outputwidth.html>OutputWidth()</a> - <a href="index.html">2DDrawing Index</a> - <a href="point.html">Point()</a> -&gt;<br><br>

</body></html>